import Actions from './actions';
export interface IMainReducer {
  isReady: boolean;
  isLoading?: boolean;
  prizesItemList: []; //所有奖项
  frequencyNum: number; //剩余抽奖次数
  active: string | number; //抽奖选中的id
  activityRegulation: string; //活动规则
  winningAnnouncementList: []; //中奖公告
  getPrizesModel: boolean; //恭喜获得弹窗
  getPrizesInfo: []; //恭喜获得内容
  addAddressModel: boolean; //去填写地址弹窗
  selectAddress: boolean; //选择地址弹窗
  addressList: []; //地址数据
}

export type ActionType = ReturnType<typeof Actions>;
export type IAllReducerProps = {
  main: IMainReducer;

  [name: string]: any;
};

//默认是全部的属性,可以自定义
export type IProps = IAllReducerProps & ActionType;

//create by moon https://github.com/creasy2010/moon
